package com.easystream.core.stream;

import java.io.Serializable;

/**
 * @ClassName CameraPojo
 * @Description: TODO
 * @Author Soft001
 * @Date 2020/2/13
 **/
public class CameraPojo implements Serializable {
    private static final long serialVersionUID = 8183688502930584159L;
    private String username = "";// 摄像头账号
    private String password = "";// 摄像头密码
    private String ip = "";// 摄像头ip
    private String port = "554";
    private String channel = "";// 摄像头通道
    private String stream = "1";// 摄像头码流 1主码流，2子码流
    private String rtsp = "";// rtsp地址
    private String rtmp = "";// rtmp地址
    private String url = "";// hlv播放地址
    private String startTime = "";// 回放开始时间
    private String endTime = "";// 回放结束时间
    private String openTime = "";// 打开时间
    private int count = 0;// 使用人数
    private String token = "";
    private String hls = "";//hls播放
    private String type="";//默认空为合成视频，0:nvr，1:ipc
    int width;// 视频像素宽
    int height;// 视频像素高

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getPort() {
        return Integer.parseInt(port);
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getHls() {
        return hls;
    }

    public void setHls(String hls) {
        this.hls = hls;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getStream() {
        return stream;
    }

    public void setStream(String stream) {
        this.stream = stream;
    }

    public String getRtsp() {
        return rtsp;
    }

    public void setRtsp(String rtsp) {
        this.rtsp = rtsp;
    }

    public String getRtmp() {
        return rtmp;
    }

    public void setRtmp(String rtmp) {
        this.rtmp = rtmp;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getOpenTime() {
        return openTime;
    }

    public void setOpenTime(String openTime) {
        this.openTime = openTime;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "CameraPojo [username=" + username + ", password=" + password + ", ip=" + ip + ", channel=" + channel
                + ", stream=" + stream + ", rtsp=" + rtsp + ", rtmp=" + rtmp + ", url=" + url + ", startTime="
                + startTime + ", endTime=" + endTime + ", openTime=" + openTime + ", count=" + count + ", token="
                + token + "]";
    }

}
